﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserInfMod.aspx.cs" Inherits="GuoTao.Web.Admin.UserInfMod" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="inc/dv.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background-color: #CAD7F7;
}
-->
</style>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>信息修改</title>
</head>
<body>
<script>
function a()
{

 if(document.getElementById("TxtUseraccount").value=="")
 {
 alert("会员帐号不能为空！");
 document.getElementById("TxtUseraccount").focus();
 return false;
 }
 
  if(document.getElementById("TxtUsername").value=="")
 {
 alert("真实名称不能为空！");
 document.getElementById("TxtUsername").focus();
 return false;
 }
 
  if(document.getElementById("TxtUserpwd").value=="")
 {
 alert("会员密码不能为空！");
 document.getElementById("TxtUserpwd").focus();
 return false;
 }
 
  if(document.getElementById("TxtUserpwd2").value=="")
 {
 alert("重复密码不能为空！");
 document.getElementById("TxtUserpwd2").focus();
 return false;
 }
 
   if(document.getElementById("TxtUserpwd").value!=document.getElementById("TxtUserpwd2").value)
 {
 alert("密码与重复密码不相同！");
 document.getElementById("TxtUserpwd2").focus();
 return false;
 }
 
  if(document.getElementById("TxtUseradd").value==""&&document.getElementById("TxtUserphone").value==""&&document.getElementById("TxtUseremail").value=="")
 {
 alert("联系人地址，联系电话，Email不能同时为空！");
 document.getElementById("TxtUseradd").focus();
 return false;
 }

}
</script>
    <form id="form1" runat="server">
    <div>
    
<table  width="85%" border="0" cellspacing="1" cellpadding="0"  align=center class="tableBorder">
  <tr> 
<th height=24 colspan=2><B>信息修改</B></th>
</tr>
  <tr>
    <td>
        <table align="center" border="0" bordercolordark="#ecf5ff" bordercolorlight="#ceceff"
            cellpadding="0" cellspacing="1" width="100%">
            <tr>
                <td align="center" class="STYLE2" colspan="2">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" height="0">
                </td>
            </tr>
            <tr bgcolor="#a3b2cc">
                <td align="center" bgcolor="#b8dedc" width="18%">
                    &nbsp;</td>
                <td align="center" bgcolor="#b8dedc" width="82%">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="forumrow" height="24" width="18%">
                    会员帐号：</td>
                <td align="left" class="forumrow" height="24" width="82%">
                    &nbsp;<asp:TextBox ID="TxtUseraccount" runat="server" Width="120px" ReadOnly="True"></asp:TextBox>
                    <asp:Label ID="LabUserid" runat="server" Text="Label" Visible="False"></asp:Label></td>
            </tr>
            <tr>
                <td align="right" class="forumrow" height="24" width="18%">
                    真实名称：</td>
                <td align="left" class="forumrow" height="24" width="82%">
                    &nbsp;<asp:TextBox ID="TxtUsername" runat="server" Width="120px"></asp:TextBox><span style="color: #ff0000">*不能为空</span></td>
            </tr>
            <tr>
                <td align="right" class="forumrow" height="24" width="18%">
                    会员密码：</td>
                <td align="left" class="forumrow" height="24" width="82%">
                    &nbsp;<asp:TextBox ID="TxtUserpwd" runat="server" TextMode="Password" Width="120px"></asp:TextBox>
                    <asp:Label ID="Labpwd" runat="server" Text="Label" Visible="False"></asp:Label><span style="color: #ff0000">*不能为空</span></td>
            </tr>
            <tr>
                <td align="right" class="forumrow" style="height: 23px" width="18%">
                    重复密码：</td>
                <td align="left" class="forumrow" style="height: 23px" width="82%">
                    &nbsp;<asp:TextBox ID="TxtUserpwd2" runat="server" TextMode="Password" Width="120px"></asp:TextBox><span style="color: #ff0000">*不能为空</span></td>
            </tr>
            <tr>
                <td align="right" class="forumrow" height="24" width="18%">
                    详细地址：</td>
                <td align="left" class="forumrow" height="24" width="82%">
                    &nbsp;<asp:TextBox ID="TxtUseradd" runat="server" Width="350px"></asp:TextBox><font color=red>*联系人地址，联系电话，Email不能同时为空</font></td>
            </tr>
            <tr>
                <td align="right" class="forumrow" height="24" width="18%">
                    联系电话：</td>
                <td align="left" class="forumrow" height="24" width="82%">
                    &nbsp;<asp:TextBox ID="TxtUserphone" runat="server" Width="200px"></asp:TextBox>
            </tr>
            <tr>
                <td align="right" class="forumrow" height="24" width="18%">
                    联系Email：</td>
                <td align="left" class="forumrow" height="24" width="82%">
                    &nbsp;<asp:TextBox ID="TxtUseremail" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" class="forumrow" style="height: 24px" width="18%">
                    修改权限：</td>
                <td align="left" class="forumrow" style="height: 24px" width="82%">
                    &nbsp;<asp:RadioButton ID="RadUserflag1" runat="server" Text="普通会员" Checked="True" GroupName="GroupFlag" />
                    &nbsp;
                    <asp:RadioButton ID="RadUserflag2" runat="server" Text="管理员" GroupName="GroupFlag" />
                    （做程序的时候加上判断，如果是管理员可修改，如果是普通会员不可见）</td>
            </tr>
            <tr>
                <td align="right" class="forumrow" height="24" width="18%">
                    &nbsp;</td>
                <td align="left" class="forumrow" height="24" width="82%">
                    <label>
                        <asp:Button ID="BtnSubmit" runat="server" OnClick="BtnSubmit_Click" Text="提交"  OnClientClick="javascript:return a();" />&nbsp;
                    </label>
                    <label>
                        <input name="Submit" type="reset" value="重置" />
                        <asp:TextBox ID="TxtShowMsg" runat="server" Visible="False"></asp:TextBox></label></td>
            </tr>
        </table>
    </td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
